package com.itheima.wms.mapper;

import com.github.pagehelper.Page;
import com.itheima.wms.pojo.PageFactory;
import com.itheima.wms.pojo.Warehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FactoryMapper {

    void addFactory(Warehouse warehouse);

    Page<Warehouse> findAllWarehouse(PageFactory queryPage);

    Warehouse queryFactoryById(@Param("id") Integer id);

    void updateFactory(Warehouse warehouse);

    void deleteFactoryByIds(Integer[] ids);

    List<Warehouse> queryFactoryList(Integer status);
}
